#include <iostream>
using namespace std;

int main()
{
	char a = 0;
	cin >> a;
	int b = (int)a;
	cout << b << endl;
	return 0;
}

